//
//  FanUser.m
//  Fantasia
//
//  Created by kongkong on 16/9/30.
//  Copyright © 2016年 Kongkong. All rights reserved.
//

#import "FanUser.h"

NSString *const fanUserKey = @"fan_user_key";

@interface FanUser ()
@end

@implementation FanUser

+ (FanUser *)instance {
    static FanUser *_instance = nil;

    @synchronized (self) {
        if (_instance == nil) {
            _instance = [[self alloc] init];
        }
    }

    return _instance;
}

- (void)setup {
    NSString *lastToken;
    lastToken = [[NSUserDefaults standardUserDefaults] valueForKey:fanUserKey];
    if (lastToken) {
        self.token = lastToken;
        [self refreshToken];
    }
}

- (void)refreshToken {

}
@end
